package com.meida.student.app.user.handler;

import com.meida.common.base.entity.EntityMap;
import com.meida.common.mybatis.interceptor.PageInterceptor;
import com.meida.common.mybatis.model.PageParams;
import com.meida.common.mybatis.query.CriteriaQuery;
import com.meida.module.bus.client.entity.BusTerm;
import org.springframework.stereotype.Component;

@Component("TermListHandler")
public class TermListHandler implements PageInterceptor<BusTerm> {

    @Override
    public void prepare(CriteriaQuery<BusTerm> cq, PageParams pageParams, EntityMap params) {
        cq.clear();
        cq.select(BusTerm.class, "termId", "termName");
    }
}
